

    <script type="text/javascript" src="js/auditorOperation.js"></script>
    <script>
        var hash=window.location.hash;
        if(hash=="#statistical"){
            $("#statisticalBtn").click();
        }

        //延迟任务查询当前本地业务日志文件是否即将到达上限
        // setTimeout(function(){
        //     $.ajax({
        //         url:HOST.concat("/getuserlogarrivedmax?token="+config.token+"&timeStamp="+new Date().getTime()),
        //         type:"get",
        //         dataType:"json",
        //         success:function(data){
        //             if (data.meta.state=="success"){
        //                 var res=data.data.isAlert;
        //                 if (res==true||res=="true"){
        //                     alert(data.data.message);
        //                 }
        //             } else{
        //                 console.log("查询失败");
        //             }
        //         },
        //         error:function (data) {
        //             console.log("服务器异常");
        //         }
        //     });
        // },5000);
    </script>

    <div class="padding-big" >
            <div class="op">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">开始时间：</label>
                        <div class="layui-input-inline">
                            <input type="date" name="from" id="from" lay-verify="date" placeholder="yyyy-MM-dd"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline" >
                        <label class="layui-form-label">结束时间：</label>
                        <div class="layui-input-inline">
                            <input type="date" name="to" id="to" lay-verify="date" placeholder="yyyy-MM-dd"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">用户名：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="username" id="username" maxlength="16" lay-verify="title" autocomplete="off"
                                   placeholder="请输入用户名" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">事件类型：</label>
                        <div class="layui-input-inline" style="width: 100px">
                            <select id="eventType" class="mySelect">
                                <option value=""></option>
                                <option value="0">业务级事件</option>
                                <option value="1">系统级事件</option>
                            </select>
                        </div>
                    </div>
                    <button class="layui-btn layui-btn-normal" id="search"><i class="fa fa-search"></i>&nbsp;搜索</button>
                    <button class="layui-btn layui-btn-normal" id="saveNormal" onclick="saveNormalLog()"><i class="fa fa-cloud-download"></i>&nbsp;点击备份业务日志</button>
                    <button class="layui-btn layui-btn-normal" id="statisticalBtn"><i class="fa fa-line-chart"></i>&nbsp;点击查看统计信息</button>
                </div>
            </div>
            <div class="offcial-table margin-top clearfix" style="background-color: #fff;">
                <div class="offcial-table tr-border margin-big-top clearfix" >
                    <div class="tr-th clearfix">
                        <div class="th w20">
                             <span style="margin-left: 15px;">
                            操作类型
                            <i class="fa fa-arrow-circle-up fa-gray fa-fw" title="按类型升序排列" id="typeAesc" style="cursor: pointer"></i>
                            <i class="fa fa-arrow-circle-down fa-gray fa-fw" title="按类型降序排列" id="typeDesc" style="cursor: pointer"></i>
                              </span>
                        </div>
                        <div class="th w15">
                              <span style="margin-left: 15px;">
                            用户名
                            <i class="fa fa-arrow-circle-up fa-gray fa-fw" title="按用户名升序排列" id="usernameAesc" style="cursor: pointer"></i>
                            <i class="fa fa-arrow-circle-down fa-gray fa-fw" title="按用户名降序排列" id="usernameDesc" style="cursor: pointer"></i>
                              </span>
                        </div>
                        <div class="th w15">
                              <span style="margin-left: 15px;">
                            事件类型
                            <i class="fa fa-arrow-circle-up fa-gray fa-fw" title="按用户名升序排列" id="eventTypeAesc" style="cursor: pointer"></i>
                            <i class="fa fa-arrow-circle-down fa-gray fa-fw" title="按用户名降序排列" id="eventTypeDesc" style="cursor: pointer"></i>
                              </span>
                        </div>
                        <div class="th w20">
                            详细信息
                        </div>
                        <div class="th w15">
                            <span style="margin-left: 15px;">
                                操作时间
                                <i class="fa fa-arrow-circle-up fa-gray fa-fw" title="按时间升序排列" id="timeAesc" style="cursor: pointer"></i>
                            <i class="fa fa-arrow-circle-down fa-gray fa-fw" title="按时间降序排列" id="timeDesc" style="cursor: pointer"></i>
                            </span>
                        </div>
                        <div class="th w15">
                            操作结果
                        </div>
                    </div>
                    <div id="tbody">
                    </div>
                </div>
            </div>

            <div class="show-page padding-big-right" id="myFooter">
                <div class="page">
                    <div class="page">
                        <p style="font-size: 14px">
                            统计符合条件的信息共:&nbsp;<span id="numValue" style="color: red;">0 </span>&nbsp;条
<!--                            ;&nbsp;<span id="pageValue">0</span>&nbsp;页-->
                        </p>
                        <ul class="offcial-page margin-top margin-big-right">
                        	<li>
								<a href="javascript:void(0)" onclick="logsFirstPage()" class="next">首     页</a>
							</li>
                            <li>
                                <a href="javascript:void(0)" onclick="logsLastPage()" class="next">上一页</a>
                            </li>
                            <li><span class="fl">第<em class="margin-small-left margin-small-right" id="pageNum">1</em>页</span>
                            </li>
                            <li>
                                <a href="javascript:void(0)" onclick="logsNextPage()" class="next">下一页</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

    </div>





